import React from 'react'

//商品列表
export async function apiGetCommodityList(params) {
    return await React.$post('/management/productInfo/page', params);
}
//商品类目
export async function apiGetCalssify(params) {
    return await React.$post('/management/productClassify/openList', params);
}
//商品详情
export async function apiGetProductDetails(params) {
    return await React.$post('/management/productInfo/getProductDetail', params);
}
//商品评价
export async function apiGetStoresEvaluation(params) {
    return await React.$post('/management/storesEvaluation/page', params);
}
//商品评价-详情
export async function apiGetStoresEvaluationView(params) {
    return await React.$post('/management/storesEvaluation/view', params);
}
//商品评价-删除
export async function apiGetStoresEvaluationDel(params) {
    return await React.$post('/management/storesEvaluation/del', params);
}
//商品上下架
export async function apiProductInfoPutaway(params) {
    return await React.$post('/management/productInfo/putaway', params);
}
//商品审核通过
export async function apiProductInfoApprove(params) {
    return await React.$post('/management/productInfo/approve', params);
}
//商品审核驳回
export async function apiProductInfoRejected(params) {
    return await React.$post('/management/productInfo/rejected', params);
}
//商品保存
export async function apiProductInfoInsert(params) {
    return await React.$post('/management/productInfo/insert', params);
}
//商品发布或取消
export async function apiProductInfoUpdateState(params) {
    return await React.$post('/management/productInfo/updateState', params);
}
//商品详情-修改按钮
export async function apiProductInfoDetailButton(params) {
    return await React.$post('/management/productInfo/getProductDetail', params);
}
//商品删除
export async function apiProductInfoDel(params) {
    return await React.$post('/management/productInfo/del', params);
}
//商品修改
export async function apiProductInfoUpdate(params) {
    return await React.$post('/management/productInfo/update', params);
}
//商品评价回复
export async function apiStoresEvaluationReply(params) {
    return await React.$post('/management/storesEvaluation/reply', params);
}
//修改库存
export async function apiUpdateInventory(params) {
    return await React.$postJson('/management/productInfo/updateInventory/Json', params);
}
// 商品详情规格上下架
export async function apiProductInfoSkuPutaway(params) {
    return await React.$post('/management/productInfo/sku/putaway', params);
}
